// 文件位置: src/main/java/com/pharmacy/LogManage/service/OperationLogService.java
package com.pharmacy.LogManage.service;

import com.pharmacy.LogManage.entity.OperationLog;

import java.util.Date;
import java.util.List;

public interface OperationLogService {
    List<OperationLog> getAllLogs();
    List<OperationLog> getLogsByDateRange(Date startDate, Date endDate);
    List<OperationLog> getLogsByUserId(Integer userId);
    List<OperationLog> getLogsByOperationType(String operationType);
    boolean addLog(OperationLog operationLog);
    void logOperation(Integer userId, String operationType, String targetType,
                      Integer targetId, String description);
    // 新增方法
    boolean deleteLog(Integer id);
    void clearLogs();

    // 新增组合查询方法
    List<OperationLog> getLogsWithConditions(String operationType, String targetType,
                                             Integer userId, Date startDate, Date endDate);
}